<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        for(var i=100 ; i < 1000 ; i++){
            var bai = parseInt(i /100);
            var shi = parseInt((i-bai*100)/10);
            var ge = i % 10;
            if(bai*bai*bai + shi*shi*shi + ge*ge*ge == i){
                console.log(i);
            }
        }
       
    </script>
</head>
<body>
    
</body>
</html>